package com.mvp.shq.washer.ui.shop.productComment;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.ProductComment;
import com.mvp.shq.washer.entity.shop.result.CommentResult;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/10/10.
 */

public class Model implements ProductCommentConstract.Model {

    @Override
    public Observable<BaseResult<CommentResult>> getCommentList(String token, String productId, int pageNO, int pageSize) {
        return ShopApi.getInstance().service
                .getCommentList(token,productId,pageNO,pageSize)
                .compose(RxSchedulers.io_main());
    }
}
